package com.oocl.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Customer {
	private String id;
	private String name;
	private boolean sex;
	private double salary;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birth;
	
	public Customer() {
	}
	
	public Customer(String id, String name, boolean sex, double salary,
			Date birth) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.salary = salary;
		this.birth = birth;
	}



	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", sex=" + sex
				+ ", salary=" + salary + ", birth=" + birth + "]";
	}
	
	
}
